package com.doctor.windflower_doctor.activity;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.ImageButton;
import android.widget.RelativeLayout;
import android.widget.TextView;

import com.doctor.windflower_doctor.R;
import com.doctor.windflower_doctor.rectoractivity.AnimalActivity;
import com.doctor.windflower_doctor.rectoractivity.BellyBandActivity;
import com.doctor.windflower_doctor.rectoractivity.BloodPressureActivity;
import com.doctor.windflower_doctor.rectoractivity.FetalMovementActivity;
import com.doctor.windflower_doctor.rectoractivity.SleepActivity;
import com.doctor.windflower_doctor.rectoractivity.SportActivity;
import com.doctor.windflower_doctor.rectoractivity.WeightRecordActivity;

public class PregnancyStatisticsActivity extends BaseActivity implements OnClickListener {
	private TextView textView;
	private ImageButton back_btn, orenge_btn, checklist_imageButton;
	private RelativeLayout weight_relativeLayout, animalheat_relativeLayout, bellyband_relativeLayout, bloodpressure_relativeLayout, sleep_relativeLayout,
			sport_relativeLayout, fetalmovement_relativeLayout, shit_relativeLayout;

	@Override
	protected void getSaveData(Bundle savedInstanceState) {
		// TODO Auto-generated method stub

	}

	@Override
	protected void processLogic() {
		// TODO Auto-generated method stub

	}

	@Override
	protected void setListener() {
		back_btn.setOnClickListener(this);
		orenge_btn.setOnClickListener(this);
		checklist_imageButton.setOnClickListener(this);
		weight_relativeLayout.setOnClickListener(this);
		animalheat_relativeLayout.setOnClickListener(this);
		bellyband_relativeLayout.setOnClickListener(this);
		bloodpressure_relativeLayout.setOnClickListener(this);
		sleep_relativeLayout.setOnClickListener(this);
		sport_relativeLayout.setOnClickListener(this);
		fetalmovement_relativeLayout.setOnClickListener(this);
		shit_relativeLayout.setOnClickListener(this);
	}

	@Override
	protected void findViews() {
		textView = (TextView) findViewById(R.id.textView);
		textView.setText("我的孕期记录统计");
		back_btn = (ImageButton) findViewById(R.id.back_btn);
		orenge_btn = (ImageButton) findViewById(R.id.orenge_btn);
		// orenge_btn.setImageDrawable(this.getResources().getDrawable(R.id));
		checklist_imageButton = (ImageButton) findViewById(R.id.checklist_imageButton);
		weight_relativeLayout = (RelativeLayout) findViewById(R.id.weight_relativeLayout);
		animalheat_relativeLayout = (RelativeLayout) findViewById(R.id.animalheat_relativeLayout);
		bellyband_relativeLayout = (RelativeLayout) findViewById(R.id.bellyband_relativeLayout);
		bloodpressure_relativeLayout = (RelativeLayout) findViewById(R.id.bloodpressure_relativeLayout);
		sleep_relativeLayout = (RelativeLayout) findViewById(R.id.sleep_relativeLayout);
		sport_relativeLayout = (RelativeLayout) findViewById(R.id.sport_relativeLayout);
		fetalmovement_relativeLayout = (RelativeLayout) findViewById(R.id.fetalmovement_relativeLayout);
		shit_relativeLayout = (RelativeLayout) findViewById(R.id.shit_relativeLayout);

	}

	@Override
	public int getResLayoutId() {
		// TODO Auto-generated method stub
		return R.layout.myrecordstatisticsduringpregnancy;
	}

	@Override
	public void onClick(View v) {
		Intent intent = null;
		switch (v.getId()) {
		case R.id.back_btn:
			finish();
			break;
		case R.id.orenge_btn:
			break;
		case R.id.checklist_imageButton:
			intent = new Intent(PregnancyStatisticsActivity.this, InspectionActivity.class);
			startActivity(intent);
			break;
		case R.id.weight_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, WeightRecordActivity.class);
			startActivity(intent);
			break;
		case R.id.animalheat_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, AnimalActivity.class);
			startActivity(intent);
			break;
		case R.id.bellyband_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, BellyBandActivity.class);
			startActivity(intent);
			break;
		case R.id.bloodpressure_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, BloodPressureActivity.class);
			startActivity(intent);
			break;
		case R.id.sleep_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, SleepActivity.class);
			startActivity(intent);
			break;
		case R.id.sport_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, SportActivity.class);
			startActivity(intent);
			break;
		case R.id.fetalmovement_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, FetalMovementActivity.class);
			startActivity(intent);
			break;
		case R.id.shit_relativeLayout:
			intent = new Intent(PregnancyStatisticsActivity.this, ShitActivity.class);
			startActivity(intent);
			break;
		}
	}

}
